package com.geese.common.util;

import java.util.Map;

/**
 * 微信模板消息封装类
 * Created by huweiwei on 2017/3/22.
 */
public class TemplateMsg {
    /** openid */
    private String touser;
    /** 模板id */
    private String template_id;
    /** 跳转url */
    private String url;
    /** 颜色 */
    private String topcolor;
    /** 业务数据 */
    private Map<String, MessageData> data;

    public String getTouser() {
        return touser;
    }

    public void setTouser(String touser) {
        this.touser = touser;
    }

    public String getTemplate_id() {
        return template_id;
    }

    public void setTemplate_id(String template_id) {
        this.template_id = template_id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTopcolor() {
        return topcolor;
    }

    public void setTopcolor(String topcolor) {
        this.topcolor = topcolor;
    }

    public Map<String, MessageData> getData() {
        return data;
    }

    public void setData(Map<String, MessageData> data) {
        this.data = data;
    }

    /** 业务参数类  */
    public static class MessageData{
        private Object value;
        private String color;

        public MessageData(Object value, String color) {
            this.value = value;
            this.color = color;
        }

        public Object getValue() {
            return value;
        }

        public void setValue(Object value) {
            this.value = value;
        }

        public String getColor() {
            return color;
        }

        public void setColor(String color) {
            this.color = color;
        }
    }
}